<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateSmisCrewsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('smis_crews', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('crew_id')->default('0')->comment('船员ID');
            $table->string('crew_name')->nullable()->comment('船员名称');
            $table->string('mobile')->index()->nullable()->comment('手机号');
            $table->integer('sex')->default('0')->comment('性别,1男2女0未知');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('smis_crews');
    }
}
